package com.wn.study.repository.module

import com.wn.study.view.StudyAdapter
import dagger.Module
import dagger.Provides
import dagger.hilt.InstallIn
import dagger.hilt.android.components.ActivityComponent
import dagger.hilt.android.scopes.ActivityScoped

/**
 * @Author: wn
 * @Date: 2023/7/28 14:43
 * @Description: 提供 FooterAdapter retry 函数
 */
@Module
@InstallIn(ActivityComponent::class)
object FooterAdapterModule {
  @ActivityScoped
  @Provides
  fun provideRetryFun(adapter: StudyAdapter): () -> Unit =
    { adapter.retry() }
}